package cate.common.table.activity.destinygate.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.destinygate.row.DestinyGateChapterRow;
import cate.common.table.activity.destinygate.row.DestinyGateGiftRow;

import java.util.ArrayList;
import java.util.List;

public class DestinyGateChapterSheet extends ESheet<DestinyGateChapterRow> {
    @Override
    public String getSheetName() {
        return "关卡配置";
    }

    public DestinyGateChapterRow showBeforeRow(int levelBefore, int heroId) {
        DestinyGateChapterRow before = null;
        for (DestinyGateChapterRow row : this.list) {
            if (row.heroId == heroId && row.level == levelBefore) {
                before = row;
            }
        }
        return before;
    }
}
